<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
	<meta charset="utf-8">
	<title>html5贪吃蛇</title>
	<script type="text/javascript" src="snake.js"></script>

	<script>

	</script>
</head>
<body>
	<style>
body{
	text-align: center;
}
#snake{
	margin-top: 100px;
}
	</style>
	<canvas id="snake" width="" height=""></canvas>

	<h4 id="score">得分：0</h4>
	<h4 id="speed">速度：1</h4>

	<script>
	var snake = new Snake("snake","score","speed",15,15);
		snake.init();

	</script>
</body>